<%= error_messages_for :purchase %>

<% form_for(:purchase, :url => purchase_path(@purchase), :html => { :method => :put }) do |f| %>
  <%= render :partial => 'form', :locals => {:f => f} %>
<% end %>

<%= link_to 'Back', purchases_path %>
